<style>
	table{
		font-size:12px;
		width:900px;
		text-align:center;
		border-collapse:collapse;
	}
	table tr td{
		border:1px solid #999;
		height:30px;
	}
	.tr_b td{
		font-weight:bold;
	}
</style>
<script>
	function del(){
			return confirm('确定要删除？');
	}

</script>
	<table>
		<tr class='tr_b'>
			<td>#编号</td>
			<td>id</td>
			<td>品牌名</td>
			<td>操作</td>
		</tr>
<?php
	$i=0;
	foreach($brandDate as $val):
?>
		<tr>
			<td><?php echo ++$i ?></td>
			<td><?php echo $val['id'] ?></td>
			<td><?php echo $val['name'] ?></td>
			<td>	
				<a href='/index.php/Admin/Brand/update/id/<?php echo $val['id'] ?>'>更改</a>

				<a onclick="return del()" href='/index.php/Admin/Brand/delete/id/<?php echo $val['id'] ?>'>删除</a>
			</td>
		</tr>
<?php  
	endforeach;
?>
	</table>